package com.lulin.mall.ware.fegin;

import com.lulin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 远程调用商品服务
 *
 * @author lulin
 * @date 2022/11/8 14:38
 */
@FeignClient(name = "mall-product")
public interface ProductFeignService {
    /**
     * 远程调用商品服务的sku商品信息
     * 也可以通过网关来调用商品服务
     *
     * @param skuId sku商品id
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    //@RequiresPermissions("product:skuinfo:info")
    public R info(@PathVariable("skuId") Long skuId);
}

